package com.mimiwang.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mimiwang.common.utils.PageUtils;
import com.mimiwang.user.entity.UserInfoEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author hustart
 * @email hustart1@126.com
 * @date 2022-09-30 22:24:17
 */
public interface UserInfoService extends IService<UserInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void sendSecurityCode(String mobile);


    boolean register(String code, UserInfoEntity userInfoEntity);

    boolean isExistedUserName(String userName);

    boolean isExistedMobile(String mobile);

    int verifyUserInfo(String userName, String password, HttpServletRequest request);

    boolean checkLoginIncorrect(HttpServletRequest request);

    boolean verifyMobileVerify( String mobile, String verifyCode);

    Long selectByUserName(String userName);

    UserInfoEntity getUserInfoByUserId(Long userId);

    String distributeToken(Long userId, String userName);

    UserInfoEntity selectByMobile(String mobile);


}

